package com.kxmall.rider.domain.bo;

import com.kxmall.common.core.domain.BaseEntity;
import com.kxmall.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;
import java.util.List;
import java.util.Set;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 配送业务对象 kx_rider
 *
 * @author kxmall
 * @date 2023-09-21
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class KxRiderBo extends BaseEntity {

    /**
     * 配送员主键ID
     */
    @NotNull(message = "配送员主键ID不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 配送员名字
     */
    private String name;

    private String userName;

    /**
     * 开始配送时间
     */
    private String deliveryStart;

    /**
     * 结束配送时间
     */
    private String deliveryEnd;

    /**
     * 联系电话
     */
    private String phone;

    /**
     *
     */
    private String avatarUrl;

    /**
     * 登录ip
     */
    private String lastLoginIp;

    /**
     *
     */
    private Date gmtLastLogin;

    /**
     * 登录类型
     */
    private Long loginType;

    /**
     *
     */
    private String openId;

    /**
     * 配送员状态
     */
    private Integer state;

    /**
     * 开工状态
     */
    private Integer workState;

    /**重置骑手密码*/
    private String newPassword;

    /**
     * 骑手登录密码
     */
    private String password;

    /**
     * 所属仓库
     */
    private Long storageId;

    /**
     * 配送范围
     */
    private Long deliveryRadius;


    private List<Long> weekNumberIds;

    private String gzhOpenId;

    //性别，0未知，1男，2女
    private Integer sex;

    private String birthday;

    private String realName;

    /**
     * 仓库权限参数
     */
    private Set<Long> storageIds;
}
